home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / shell / shell.swf / scripts / frame_2 / DoAction_5.as < prev    next >
Encoding:
Text File  |  2004-07-06  |  861 b   |  33 lines

  1. depth = 1;
  2. childlock = false;
  3. ChildLock = {};
  4. ChildLock.active = false;
  5. ChildLock.lockDialog = function()
  6. {
  7.    lingo("spriteDialog.show(\"child_lock\")");
  8. };
  9. ChildLock.unlockDialog = function()
  10. {
  11.    lingo("spriteDialog.show(\"child_unlock\")");
  12. };
  13. ChildLock.lock = function()
  14. {
  15.    this.active = true;
  16.    var node = sideMenu.mc_lock.node;
  17.    var str = node.attributes.lock;
  18.    node.attributes.lock = node.attributes.label;
  19.    node.attributes.label = str;
  20.    this.EB.broadcastMessage("childLockSet",true);
  21. };
  22. ChildLock.unlock = function()
  23. {
  24.    this.active = false;
  25.    var node = sideMenu.mc_lock.node;
  26.    var str = node.attributes.lock;
  27.    node.attributes.lock = node.attributes.label;
  28.    node.attributes.label = str;
  29.    this.EB.broadcastMessage("childLockSet",false);
  30. };
  31. ChildLock.EB = {};
  32. ASBroadcaster.initialize(ChildLock.EB);
  33.